package com.example.nacosconfiga.controller;

import com.example.nacosconfiga.config.Hero;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {
    @Resource
    private Hero hero;

    @GetMapping("/info")
    public String hearInfo() {
        return hero.toString();
    }
}
